package com.mdd.common.entity.yangyangLeadingEnterprise.dto;

import com.mdd.common.entity.yangyangLeadingEnterprise.TAppEnterprise;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

@ApiModel
@Data
public class AppEnterpriseDTO implements Serializable {

    @ApiModelProperty(value = "")
    private Integer id;

    @ApiModelProperty("企业全称")
    private String enterpriseName;

    @ApiModelProperty("公司法人")
    private String enterpriseLegalPerson;

    @ApiModelProperty("企业税号")
    private String enterpriseTaxNumber;

    public static AppEnterpriseDTO toAppEnterpriseDTO(TAppEnterprise appEnterprise) {
        AppEnterpriseDTO appEnterpriseDTO = new AppEnterpriseDTO();
        BeanUtils.copyProperties(appEnterprise, appEnterpriseDTO);
        return appEnterpriseDTO;
    }

}
